@use './base';

@font-face {
  font-family: cn;
  src: url('../assets//fonts/Ubuntu-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: en;
  src: url('../assets//fonts/Ubuntu-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: title;
  src: url('../assets/fonts/Pacifico-Regular.ttf');
  font-display: swap;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  user-select: none;
  transition: background-color 0.2s ease;
}

a:hover,
a:link,
a:visited,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
}

ul,
ol {
  padding: 0;
  margin: 0;
  font: inherit;
  vertical-align: baseline;
  list-style: none;
  border: 0;

  &:focus-visible {
    outline: none;
  }
}

html,
body,
#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: en, cn, sans-serif;
  color: var(--main-text-color);
}

body {
  background: var(--main-bg-color);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  transition: color 0.1s ease;

  &.no-scroll {
    overflow: hidden;
  }
}

.page-container {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
  overflow-y: hidden;
  background-color: var(--back-filter-color);
  transition: transform 0.5s ease;
}
